import request from '@/utils/request'

// 查询客户卡券列表
export function customerCouponListAll(data) {
  return request({
    url: '/customer/coupon/customerCouponListAll',
    method: 'post',
    data: data
  })
}

// 删除客户卡券
export function delCustomerCoupon(id) {
  return request({
    url: '/customer/coupon/' + id,
    method: 'delete'
  })
}

// 客户卡券状态修改
export function customerCouponChangeStatus(id, active) {
  const data = {
    id,
    active
  }
  return request({
    url: '/customer/coupon/customerCouponChangeStatus',
    method: 'put',
    data: data
  })
}
